<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <div class="box">
                <div class="box-header" style="margin-top:1px;">
                    <input type="search" ng-model="filter.trunkName" style="width: 220px;" placeholder="搜索主干工程名..." /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="search" ng-model="filter.projectName" style="width: 220px;" placeholder="搜索分支工程名..." /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <img src="/beetle/image/icon_plus-box.png" ng-click="add();" style="cursor: pointer;">
                    <br>
                    <br>
                    <table border="1" cellpadding="0" cellspacing="0" width="70%">
                        <tr style="line-height: 30px;">
                            <th style="text-align:center;">主干名</th>
                            <th style="text-align:center;">工程名</th>
                            <th style="text-align:center;">操作</th>
                        </tr>
                        <tr ng-if="count != 0" ng-repeat="i in list | filter:filter|paging:page.index:page.size " style="line-height: 50px;">
                            <td style="text-align: center;">{{i.trunkName}}</td>
                            <td style="text-align: center;">{{i.projectName}}</td>
                            <td style="text-align: center;">
                                <img src="/beetle/image/icon_cog.png" ng-click="edit(i.projectName);" style="cursor: pointer;width: 20px;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <img src="/beetle/image/icon_trash.png" ng-show="!isTrunk(i.projectName);" ng-click="del(i.projectName);" style="cursor: pointer;width: 20px;">
                                <img ng-show="isTrunk(i.projectName);" style="width: 20px;">
                            </td>
                        </tr>
                    </table>
                    <uib-pagination total-items="list|filter:filter|size" ng-model="page.index" max-size="5" previous-text="上一页" next-text="下一页" first-text="首页" last-text="尾页" items-per-page="page.size" class="pagination-sm pull-right" boundary-links="true"></uib-pagination>
                </div>
            </div>
        </div>
    </div>
</section>
